package lab02.test06;

/**
 * Created by leovo on 2017/10/14.
 */
public class Trangle {
     double a,b,c;
     double area;
     double radius;
     Boolean change;

    void  trangle(double sideA,double sideB,double sideC){
        if(sideA+sideB>sideC) change=true;
        else change=false;
    }
    double perimter(){
        if(change=true)
            return a+b+c;
        else{
            System.out.println("不能构成三角形");
            return 0;
        }
    }
    double area(){
        if(change=true)
            return (a*b)/2;
        else {
            System.out.println("不能构成三角形");
            return 0;
        }
    }
    double alter(double a,double b,double c){
       a=a;
        b=b;
        c=c;
        return 0;
    }
}

